package com.caiyouxi.pay.controller;

import com.caiyouxi.common.bean.ResData;
import com.caiyouxi.pay.model.PaymentGateway;
import com.caiyouxi.pay.service.PaymentGatewayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("payment_gateway")
public class PaymentGatewayController {
    @Autowired
    private PaymentGatewayService service;

    @RequestMapping("delete_payment")
    public ResData delete_payment(@RequestBody PaymentGateway bean){
        return service.delete_payment(bean);
    }

    @RequestMapping("insertSelective")
    public ResData insertSelective(@RequestBody PaymentGateway bean){
        return service.insertSelective(bean);
    }

    @RequestMapping("selectByPrimaryKey")
    public ResData selectByPrimaryKey(@RequestBody PaymentGateway bean){
        return service.selectByPrimaryKey(bean);
    }

    @RequestMapping("updateByPrimaryKeySelective")
    public ResData updateByPrimaryKeySelective(@RequestBody PaymentGateway bean){
        return service.updateByPrimaryKeySelective(bean);
    }

    @RequestMapping("get_patment_list")
    public ResData get_patment_list(@RequestBody PaymentGateway bean){
        return service.get_patment_list(bean);
    }
}
